import axios  from '../config'
import { PROJECT_API_URL } from '../baseURL'

export default {
    //获取所有用户
    getMenu(){
      return axios({
          url: PROJECT_API_URL + '/sys/menu/list',
          method: "GET",
      })
    },
    //添加
    addMenu(menu){
      return axios({
        url: PROJECT_API_URL + '/sys/menu/add',
        method: "POST",
        data: menu,
      })
    },
    //删除
    delete(id){
      return axios({
        url: PROJECT_API_URL + '/sys/menu/' +id + '/delete',
        method: "DELETE",
      })
    },


}